

const state = {
  device: "big-dcreen",
  enterAddservice: 0,
  backRoute: {
    isBack: false,
    backPath: "",
    timeStamp: "",
  },
  floorData: [], //楼层信息
};

const mutations = {
  TOGGLE_DEVICE: (state, device) => {
    state.device = device;
  },
};

const actions = {
  toggleSideBar({ commit }) {
    commit("TOGGLE_SIDEBAR");
  },
  toggleDevice({ commit }, device) {
    commit("TOGGLE_DEVICE", device);
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,

}
